package com.gaga.console.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gaga.console.base.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单权限表
 * </p>
 *
 * @author liujia
 * @since 2022-07-14
 */
@Data
@Accessors(chain = true)
@TableName("sys_menu")
@ApiModel(value = "SysMenu对象", description = "菜单权限表")
public class SysMenu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("菜单ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("菜单标题")
    private String name;

    @ApiModelProperty("菜单权限")
    private String permission;

    @ApiModelProperty("路径")
    private String path;

    @ApiModelProperty("组件")
    private String component;

    @ApiModelProperty("父菜单ID")
    private Long parentId;

    @ApiModelProperty("菜单图标")
    private String icon;

    @ApiModelProperty("是否缓存该页面: 1:是  0:不是")
    private String keepAlive;

    @ApiModelProperty("菜单类型")
    private String type;

    @ApiModelProperty("是否显示")
    private String hidden;

    @ApiModelProperty("是否外链")
    private String target;


}
